//
//  ISRingServer.h
//  iPhoneSafety
//
//  Created by dlon 2019/1/2.
//  Copyright © 2019年 com.li.ding. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ISSoundInfomation : NSObject <NSCoding>

@property (nonatomic, strong) NSURL *soundUrl;
@property (nonatomic, strong) NSString *soundName;

@end

@interface ISRingServerConfig : NSObject <NSCoding>

@property (nonatomic, strong) ISSoundInfomation *nowInfo;

@property (nonatomic, assign) NSInteger delayTime;

@property (nonatomic, assign) double voice;

@property (nonatomic, assign) BOOL shock;

@property (nonatomic, assign) BOOL wordOn;

@property (nonatomic, copy) NSString *word;

@property (nonatomic, assign) NSInteger wordTime;

- (void)save;

+ (instancetype)serverConfig;

@end

@interface ISRingServer : NSObject

+ (instancetype)shareInstance;

- (void)playWithSound:(ISSoundInfomation *)sound;

- (void)stop;

- (void)ring;

- (void)stopRing;

- (void)selectSound:(ISSoundInfomation *)sound;

@property (nonatomic, strong, readonly) NSMutableArray *systemSounds;

@property (nonatomic, strong, readonly) ISRingServerConfig *config;

@end



